<?php
$id = $epg['id'];
$data = file_get_contents('http://tvbox.tw/'.$id.'.htm');
preg_match_all('/<td width="5%"  valign="top" align="right">(.*?)<\/td>/',$data,$time);
preg_match_all('/<td width="95%" valign="top">(.*?)<\/td>/',$data,$name);
for($i = 0; $i <= count($time[1]) - 1; $i++) {
    echo str_replace('&nbsp;<span class="label label-danger">現正播放</span>','','<li><span>'.$time[1][$i].'</span><span>&nbsp&nbsp&nbsp'.$name[1][$i].'</span></li>');
};